package com.flying.keyword.acces;

/**
 * @ClassName: Animal
 * @createDate: 2023/6/26 8:30
 * @author: liu
 * @description:动物类
 */
public class Animal {
    String name;
    public String color;
    private String gender;
    private int age;

    public void eat(String food) {
        System.out.println("动物正在吃" + food);
    }

    public void sleep() {
        System.out.println("动物正在睡觉");
    }
}
